package vn.vfriends.vbox.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author tuancn
 */
public class ProviderUtil {
    
    private static final Logger logger = LoggerFactory.getLogger(ProviderUtil.class);
    
    private static final Properties properties;
    
    static {
        properties = new Properties();
        try {
            InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("storage.properties");
            properties.load(inputStream);
        } catch (IOException e) {
            logger.error(e.getMessage(), e);
        }
    }

    public static Properties getProperties() {
        return properties;
    }
}
